<?php
	class Request {

		private $url;
		private $server;
 	
 		public function __construct() {
 			$this->url = $this->_url();
 			$this->server = $this->_serverName();
 		}
 
 		public function getUrl() {
 			return $this->url;
 		}
 		
 		public function getServerName() {
 			return $this->server;
 		}
 		
 	
 		private function _url() {
 			return $_SERVER['REQUEST_URI'];
 		}
 		
 		private function _serverName() {
 			return $_SERVER['SERVER_NAME'];
 		}

 }	
 